<?php 
/* SVN FILE: $Id$ */
/* Prevision Test cases generated on: 2009-12-19 22:12:15 : 1261276995*/
App::import('Model', 'Prevision');

class PrevisionTestCase extends CakeTestCase {
	var $Prevision = null;
	var $fixtures = array('app.prevision', 'app.persona');

	function startTest() {
		$this->Prevision =& ClassRegistry::init('Prevision');
	}

	function testPrevisionInstance() {
		$this->assertTrue(is_a($this->Prevision, 'Prevision'));
	}

	function testPrevisionFind() {
		$this->Prevision->recursive = -1;
		$results = $this->Prevision->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Prevision' => array(
			'id'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'estado'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>